﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication3.入库信息管理
{
    public partial class orderManager : Form
    {
        入库信息管理.order_basedUse myOrder_basedUse = new 入库信息管理.order_basedUse();
        入库信息管理.order_search myOrder_search = new order_search();
        public orderManager()
        {
            InitializeComponent();
            panel1.Top = label1.Top + label1.Height;
            panel1.Left = button1.Right+30;
            panel1.Width = this.Width;
            panel1.Height = this.Height - panel1.Top;
           
        }

        private void Show_form(Form myform)
        {
            panel1.Controls.Clear();
            myform.TopLevel = false;
            panel1.Controls.Add(myform);
            myform.Top = 0;
            myform.Width = panel1.Width;
            myform.Height = panel1.Height;
            myform.Show();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Show_form(myOrder_basedUse);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Show_form(myOrder_search);
        }
    }
}
